//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package study.API.集合;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;

public class Conllections_demo {
    public Conllections_demo() {
    }

    public static void main(String[] args) {
        ArrayList<Integer> list = new ArrayList();
        Collections.addAll(list, new Integer[]{2, 3, 4, 5, 6});
        System.out.println(list);
        Collections.shuffle(list);
        System.out.println(list);
        Collections.sort(list);
        System.out.println(list);
        Collections.sort(list, Collections.reverseOrder());
        System.out.println(list);
        Collections.sort(list, (Comparator)null);
        System.out.println(list);
        System.out.println(Collections.binarySearch(list, 4));
        ArrayList<Integer> list2 = new ArrayList();
        Collections.addAll(list2, new Integer[]{1, 1, 1});
        Collections.copy(list, list2);
        System.out.println(list);
        Collections.swap(list, 1, 4);
        System.out.println(list);
        System.out.println(Collections.max(list));
        Collections.fill(list, 1);
        System.out.println(list);
    }
}
